projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52dd704
)
usb: ehci: Use map_physmem in ehci-generic
author
Marek Vasut
<
[email protected]
>
Sat, 23 Jan 2016 20:04:46 +0000
(21:04 +0100)
committer
Marek Vasut
<
[email protected]
>
Wed, 24 Feb 2016 18:12:32 +0000
(19:12 +0100)
Some architectures, like MIPS, require remapping of the registers.
Add the map_physmem() call to handle it.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Daniel Schwierzeck <
[email protected]
>
Cc: Hans de Goede <
[email protected]
>
drivers/usb/host/ehci-generic.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-generic.c
b/drivers/usb/host/ehci-generic.c
index 84114c5df9847e4ad0fbadc98c3d04d57f0ac08f..4444988e36fcace0566c8d99529cabf6b4969f1c 100644
(file)
--- a/
drivers/usb/host/ehci-generic.c
+++ b/
drivers/usb/host/ehci-generic.c
@@
-6,6
+6,7
@@
#include <common.h>
#include <clk.h>
+#include <asm/io.h>
#include <dm.h>
#include "ehci.h"
@@
-20,7
+21,7
@@
struct generic_ehci {
static int ehci_usb_probe(struct udevice *dev)
{
- struct ehci_hccr *hccr
= (struct ehci_hccr *)dev_get_addr(dev)
;
+ struct ehci_hccr *hccr;
struct ehci_hcor *hcor;
int i;
@@
-36,6
+37,7
@@
static int ehci_usb_probe(struct udevice *dev)
clk_dev->name, clk_id);
}
+ hccr = map_physmem(dev_get_addr(dev), 0x100, MAP_NOCACHE);
hcor = (struct ehci_hcor *)((uintptr_t)hccr +
HC_LENGTH(ehci_readl(&hccr->cr_capbase)));